//
//  PhotoHeroKey.swift
//  SwiftUILean
//
//  Created by wyknmjj on 2024/5/13.
//

import SwiftUI


struct PhotoHeroKey:PreferenceKey{
    static func reduce(value: inout [String : Anchor<CGRect>], nextValue: () -> [String : Anchor<CGRect>]) {
        value.merge(nextValue()) {$1}
    }
    
    static var defaultValue:[String :Anchor<CGRect>]=[:]
}
